//
//  MenuTableViewCell.m
//  ALFashion
//
//  Created by dengzhicheng on 15/6/13.
//  Copyright (c) 2015年 dengzhicheng. All rights reserved.
//

#import "MenuTableViewCell.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width

@implementation MenuTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubView];
    }
    return self;
}

- (void)createSubView
{
    self.classifyLabel_C = [[UILabel alloc] initWithFrame:CGRectMake(40, 20, WIDTH / 8, 20)];
    self.classifyLabel_C.textColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1];
    [self.contentView addSubview:_classifyLabel_C];
    
    self.classifyLabel_E = [[UILabel alloc] initWithFrame:CGRectMake(self.classifyLabel_C.frame.origin.x + WIDTH / 8 + 20, 20, WIDTH / 5 * 4 - self.classifyLabel_C.frame.origin.x - WIDTH / 8 -  80, 20)];
    self.classifyLabel_E.textColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1];
    [self.contentView addSubview:_classifyLabel_E];
    
    // 菜单选项下面的分割线
    self.view = [[UIView alloc] initWithFrame:CGRectMake(10, 50, [[UIScreen mainScreen] bounds].size.width * 7 / 10 - 20, 0.5)];
    [self.view setBackgroundColor:[UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1]];
    [self.contentView addSubview:self.view];
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
